package com.rem.designPattern.Command命令;

/**
 * 电灯接收者
 *
 * @author Rem
 * @date 2022-11-19
 */
public class LightReceiver {
    public void on() {
        System.out.println("电灯打开了...");
    }

    public void off() {
        System.out.println("电灯关闭了...");
    }
}

/**
 * 电视接收者
 */
class TVReceiver {
    public void on() {
        System.out.println("电视打开了...");
    }

    public void off() {
        System.out.println("电视关闭了...");
    }
}